const { DataTypes } = require('sequelize');
const sequelize = require('../db/seq')
const Basics = sequelize.define('basics', {
    // 在这里定义模型属性
    phone: {
        type: DataTypes.STRING,
        comment:'用户名，唯一'
    },
    email: {
        type: DataTypes.STRING,
        comment:'邮箱'
    },
    address: {
        type: DataTypes.STRING,
        comment:'地址'
    },
    qq: {
        type: DataTypes.INTEGER,
        comment:'QQ'
    },
    userId: {
        type: DataTypes.INTEGER,
        comment:'用户标识id'
    },
    logoImg: {
        type: DataTypes.STRING,
        comment:'logo图片'
    }
},{
    timestamps: false
});
//强制同步数据库（创建数据表）
// Basics.sync({ force: true });
// Basics.sync({ alter: true });
module.exports = Basics
